home *** CD-ROM | disk | FTP | other *** search
- Path: kari.fm.unit.no!rustad
- From: rustad@fm.unit.no (Rolf Rustad)
- Newsgroups: comp.lang.c++
- Subject: Constructors for objects that can be FALSE
- Date: 15 Feb 1996 08:53:46 GMT
- Organization: The Norwegian University of Science and Technology
- Message-ID: <4fusaq$g1e@due.unit.no>
- NNTP-Posting-Host: kari.fm.unit.no
- X-Newsreader: TIN [version 1.1 PL6]
-
- Hi
- I'm writting control software for instrumentation applications, using BC++.
- I'm creating classes, like Camera and Syntesizer etc.
- What I would like is to make objects of these classes evaluate to FALSE
- if the physical device is not present or available, as do for instanse
- ifpstream:
-
- ifpstream is(filename);
- if(!is){
- .
- .
- }
-
- How do I write the constructor??
-
- Rolf
-